package com.example.tool.util.net;

import java.io.Serializable;
import java.util.List;

/**
 * @description:
 * @author: liangkun
 * @date :   2020/4/26 14:02
 */
public class FigureSendBean implements Serializable {
    /**
     * {
     * "image_list": [{
     * "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBD..."
     * },
     * {
     * "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBD..."
     * },
     * {
     * "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBD..."
     * },
     * {
     * "image": "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBD..."
     * }
     * ],
     * "music_id": 1,
     * "fps": 10,
     * "output_type": "MP4",
     * "output_width": 600,
     * "output_height": 600,
     * "tempo": "1 1 1 1",
     * "morph_time": 1
     * }
     */
    private String appid; //app标识 （由数字、字母、下划线组成），长度限制48B (需要通过query的形式传入)
    private int music_id; //音乐 ID, -1 代表不进行配乐 请求的图片数量需要与指定音乐需求的一致
    private int fps; // 视频帧率 默认 10
    private String tempo; //每张图片的展示时长, 以空格分隔 数量要求和请求的图片张数一致 GIF默认每张图片0.7s 视频默认每张图片2s
    private float morph_time; //人像渐变的最长时间 GIF默认0.5s 视频默认1s
    private int output_width; //输出文件的图像宽度 默认800
    private int output_height; //输出文件的图像高度 默认 1280
    private String output_type; //输出文件类型 可选GIF,MOV,MP4
    private List<ImageBean> image_list; //图片列表


    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public List<ImageBean> getImage_list() {
        return image_list;
    }

    public void setImage_list(List<ImageBean> image_list) {
        this.image_list = image_list;
    }

    public int getMusic_id() {
        return music_id;
    }

    public void setMusic_id(int music_id) {
        this.music_id = music_id;
    }

    public int getFps() {
        return fps;
    }

    public void setFps(int fps) {
        this.fps = fps;
    }

    public String getTempo() {
        return tempo;
    }

    public void setTempo(String tempo) {
        this.tempo = tempo;
    }

    public float getMorph_time() {
        return morph_time;
    }

    public void setMorph_time(float morph_time) {
        this.morph_time = morph_time;
    }

    public int getOutput_width() {
        return output_width;
    }

    public void setOutput_width(int output_width) {
        this.output_width = output_width;
    }

    public int getOutput_height() {
        return output_height;
    }

    public void setOutput_height(int output_height) {
        this.output_height = output_height;
    }

    public String getOutput_type() {
        return output_type;
    }

    public void setOutput_type(String output_type) {
        this.output_type = output_type;
    }

    public static class ImageBean {
        private String image;

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }
    }

    @Override
    public String toString() {
        return "FigureSendBean{" +
                "appid='" + appid + '\'' +
                ", music_id=" + music_id +
                ", fps=" + fps +
                ", tempo='" + tempo + '\'' +
                ", morph_time=" + morph_time +
                ", output_width=" + output_width +
                ", output_height=" + output_height +
                ", output_type='" + output_type + '\'' +
                ", image_list=" + image_list +
                '}';
    }
}
